// vue.config.js（示例代码）
const path = require('path');

function resolve(dir){
  return path.join(__dirname,dir)
}

module.exports = {
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'scss',
      patterns: [
        path.resolve(__dirname, `src/assets/scss/var.scss`),
        path.resolve(__dirname, `src/assets/scss/prim.scss`),
      ]
    }
  },
  chainWebpack:(config)=>{
    config.resolve.alias.set('@',resolve('src'))
    // config.resolve.alias.set('@',resolve('src'))
  }
}
